<template>
    <div class="title" :class="level"><slot></slot></div>
</template>
    
<script setup lang='ts'>
    defineProps({
        level: {
            type: String,
            default: ''
        }
    })
</script>
    
<style scoped>
    .title{
        background-color: aquamarine;
        margin-top: 5px;
        width: 100px;
        line-height: 40px;
        text-align: center;
    }
</style>